<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib  uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
	<head>
		<base href="<%=basePath%>"/>
		<meta charset="utf-8" />
		<title>Document</title>
	</head>
	<style type="text/css">
		#hezi{
			width:600px;
			margin:auto;
		}
		.yi{
			width:500px;
			height:50px;
		}
		div{
			line-height: 50px;
		}
		
	</style>
	<body>	
		<div id="hezi">
			<h1>增加教材</h1>
			<form action="add.shtml" method="post">
				<div class="yi">教材名称: <input type="text" name="name" /></div>
				
				<div>年级: <select name="id" id="">
			<c:forEach items="${gradelist }" var="grade">
					<option value="${grade.id }">${grade.gradeName }</option>
			</c:forEach>
				</select>
			
				</div>
				<input type="submit" />
			</form>
		</div>
	</body>
</html>
